package com.anyun.collect

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.WindowManager
import androidx.fragment.app.Fragment
import com.anyun.collect.extensions.active
import com.anyun.collect.extensions.attach
import com.anyun.collect.extensions.detach
import com.anyun.collect.fragments.RouterFragment
import com.anyun.collect.helper.BottomNavigationPosition
import com.anyun.collect.helper.createFragment
import com.anyun.collect.helper.findNavigationPositionById
import com.anyun.collect.helper.getTag
import com.google.android.material.bottomnavigation.BottomNavigationView

class MainActivity : AppCompatActivity() {

    private val TAG:String = MainActivity::class.java.simpleName


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        supportActionBar?.hide()
        window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN)

        setContentView(R.layout.activity_main)
        val routerFragment = RouterFragment.newInstance()
        supportFragmentManager.beginTransaction().replace(R.id.container1,routerFragment).commit()

    }


}
